#!/bin/sh

num=$[RANDOM%5+1]
cishu=0

for ((x=1;x<=5; x++))
do
	echo "$num"
for ((i=1; i<=3; i++))
do
	read -ep "shu ru shu zi:" nun
	if [ $num -eq $nun ];then
	  echo "gongxi caiduile"
	let cishu+=1
	break;
	elif [ $nun -gt $num ];then
	  echo "cai da le"
	elif [ $nun -lt $num ];then
	  echo "cai xaio le"	
  fi
done
 
done
        echo "gongde$cishu"
break;

